<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%
    if(com.mr.qa.GlobalConfigs.smtp_server != null && com.mr.qa.GlobalConfigs.smtp_server.length() > 5)
    {
%>
<html:form action="/user" onsubmit="return validate(this);">
<html:hidden property="action" value="findpasswordresult"/>
<table border="0" cellpadding="0" cellspacing="0" align="center" width="50%">
<tr>
    <td colspan="2">
        <br>
        <div style="width:50%;text-align:left;font-size:13px;" align="center">
            找回密码
        </div>
        <br>
    </td>
</tr>
<tr class="even">
    <td>用户名</td>
    <td><html:text property="loginName" size="20" maxlength="12"/>*</td>
</tr>
<tr>
    <td>注册邮件</td>
    <td><html:text property="email" size="50"/>*</td>
</tr>
<tr class="even">
    <td>验证码</td>
    <td>
        <html:text property="vc" size="8" maxlength="4" value=""/>*<img src="<%=request.getContextPath()%>/vcimg" width="40" height="20" border="0" align="absbottom"/>
    </td>
</tr>
<tr>
    <td></td>
    <td>
        <html:submit value="找回密码"/>
    </td>
</tr>
</table>
</html:form>
<script type="text/javascript">
    function validate(pForm)
    {
        if(pForm.loginName.value == "")
        {
            alert("[用户名]必须填写");
            pForm.loginName.focus();
            return false;
        }
        if(pForm.email.value == "")
        {
            alert("[注册电子邮件]必须填写");
            pForm.email.focus();
            return false;
        }
        if(pForm.vc.value == "")
        {
            alert("[验证码]必须填写");
            pForm.vc.focus();
            return false;
        }
        return true;
    }
</script>
<%
    }
    else
    {
%>
<br>
<br>
您暂时无法使用[找回密码]功能.
<%
    }
%>
